﻿using System;

namespace Miao.UI
{
    public enum Layer
    {
        ViewLayer,
        WindowLayer,
        TempLayer,
    }

    /// <summary>
    /// 用于标记 UI 排序深度
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, Inherited = false)]
    public sealed class UILayerAttribute : Attribute
    {
        public int depth;
        public Layer layer;

        public UILayerAttribute(int depth, Layer layer)
        {
            this.depth = depth;
            this.layer = layer;
        }
    }
}